import { defineStore } from 'pinia'

// 骨架屏状态管理
export const useSkeletonStore =defineStore('skeleton',{
    // 定义状态
    state: () => ({
        skLoading:true
    }),

    // 定义动作
    actions: {
        /* 设置loading */
        setLoading(loading){
            this.skLoading = loading
        }
    },
    persist: {
        key: 'kong-pinia-skeleton',
        storage: sessionStorage
    }
})
